import unittest

from tools import login


class TestLogin(unittest.TestCase):
    def test_user_pwd_ok(self):
        if "登录成功" == login('admin','123456'):
            print('测试通过')
        else:
            print('测试不通过')


    def test_user_on(self):
        if "登录失败" == login('abcdef','123456'):
            print('测试通过')
        else:
            print('测试不通过')


    def test_pwd_on(self):
        if "登录失败" == login('admin','123123'):
            print('测试通过')
        else:
            print('测试不通过')

    def test_user_pwd_on(self):
        if "登录失败" == login('abcde','123123'):
            print('测试通过')
        else:
            print('测试不通过')
